{% extends 'fruitShop/base_user.html' %}
{% block body_content_inner %}
{% load static %}

	<div class="main_con clearfix">
		<div class="left_menu_con clearfix">
			<h3>用户中心</h3>
			<ul>
				<li><a href="{% url 'fruitShop:user_info' %}" class="active">· 个人信息</a></li>
				<li><a href="{% url 'fruitShop:user_order' 1 %}">· 全部订单</a></li>
				<li><a href="{% url 'fruitShop:user_site' %}">· 收货地址</a></li>
			</ul>
		</div>
		<div class="right_content clearfix">
				<div class="info_con clearfix">
				<h3 class="common_title2">基本信息</h3>
						<ul class="user_info_list">
							<li><span>用户名：</span>{{ userInfo.nickname }}</li>
							<li><span>联系方式：</span>{{ userInfo.phone }}</li>
							<li><span>联系地址：</span>{{ userInfo.p_c_a_detail }}</li>
						</ul>
				</div>
				
				<h3 class="common_title2">最近浏览</h3>
				<div class="has_view_list">
					<ul class="goods_type_list clearfix">
                        {% for good in viewGoods %}
				<li>
					<a href="{% url 'fruitShop:detail' good.id %}"><img src="{% static 'fruitShop/upload_images/' %}{{ good.picture }}"></a>
					<h4><a href="{% url 'fruitShop:detail' good.id %}">{{ good.name }}</a></h4>
					<div class="operate">
						<span class="prize">￥{{ good.price }}</span>
						<span class="unit">{{ good.price }}/{{ good.unit }}</span>
						<a href="#" class="add_goods" title="加入购物车"></a>
					</div>
				</li>
                        {% endfor %}
			</ul>
		</div>
		</div>
	</div>

{% endblock %}